package com.soecode.wxtools.bean;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.IOException;

@Data
public class KfAccount {

    @JSONField(name = "kf_account")
    private String kfAccount;
    private String nickname;
    private String password;

    public KfAccount(String kfAccount, String nickname, String password) {
        this.kfAccount = kfAccount;
        this.nickname = nickname;
        this.password = password;
    }

    public String toJson() throws IOException {
        return JSONObject.toJSONString(this);
    }
}
